! F include py.typed#184
Merged
nitsanavni merged 2 commits intoapprovals:mainfrom Nov 17, 2024
JayBazuzi:py_typed_files_exist
Merged
! F include py.typed#184nitsanavni merged 2 commits intoapprovals:mainfrom JayBazuzi:py_typed_files_exist
nitsanavni merged 2 commits intoapprovals:mainfrom
JayBazuzi:py_typed_files_exist
Conversation
Reviewer's Guide by SourceryThis PR adds a new test environment in tox to verify the presence of py.typed files in the built packages. The implementation creates a temporary test file that imports the packages and runs mypy on it to ensure type checking works correctly. The test builds wheel distributions of the packages, installs them, and verifies they can be properly type-checked. Sequence diagram for the py.typed file verification processsequenceDiagram
participant Developer
participant Tox
participant TestScript as test__py_typed_files_exist.py
participant Mypy
participant Pip
participant WheelBuilder as Wheel Builder
Developer->>Tox: Run test environment
Tox->>TestScript: Execute test__py_typed_files_exist.py
TestScript->>WheelBuilder: Build wheel for approval_utilities
WheelBuilder-->>TestScript: Return wheel
TestScript->>Pip: Install wheel
Pip-->>TestScript: Confirm installation
TestScript->>Mypy: Run mypy on temporary test file
Mypy-->>TestScript: Return type check result
TestScript->>WheelBuilder: Build wheel for approvaltests
WheelBuilder-->>TestScript: Return wheel
TestScript->>Pip: Install wheel
Pip-->>TestScript: Confirm installation
TestScript->>Mypy: Run mypy on temporary test file
Mypy-->>TestScript: Return type check result
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
e1303ae to
91b60f5
Compare
Contributor
|
I don't understand, discuss Sunday? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #179.
I put this outside of a pytest because it's pretty slow. Maybe there's a better way?
Summary by Sourcery
Tests: